﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Model;

namespace DAL
{
    public class AppDbContext : MyDbContext
    {
        public AppDbContext(string connectionString) : base(connectionString) { }

        /// <summary>
        /// 联系人数据集
        /// </summary>
        public DbSet<Contacts> Contacts { get; set; }
        /// <summary>
        /// 流程联系人
        /// </summary>
        public DbSet<NodePointContacts> NodePointContactses { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public DbSet<Department> Departments { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        public DbSet<Project> Projects { get; set; }
        /// <summary>
        /// 项目部门
        /// </summary>
        public DbSet<ProjectArea> ProjectAreas { get; set; }
        /// <summary>
        /// 项目环节
        /// </summary>
        public DbSet<ProjectNode> ProjectNodes { get; set; }
        /// <summary>
        /// 环节关系
        /// </summary>
        public DbSet<NodeRelationship> NodeRelationships { get; set; }
        /// <summary>
        /// 环节
        /// </summary>
        public DbSet<Point> Points { get; set; }
        /// <summary>
        /// 节点流程关系
        /// </summary>
        public DbSet<ProjectNodePoint> ProjectNodePoints { get; set; }
        /// <summary>
        /// 节点准备文件
        /// </summary>
        public DbSet<NodeInFile> NodeInFiles { get; set; }
        /// <summary>
        /// 节点结果文件
        /// </summary>
        public DbSet<NodeOutFile> NodeOutFiles { get; set; }
    }
}
